 

import { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types'

export function useFailed(): IJsonItem[] {
  const { t } = useI18n()
  return [
    {
      type: 'input-number',
      field: 'failRetryTimes',
      name: t('project.node.number_of_failed_retries'),
      span: 12,
      props: {
        min: 0
      },
      slots: {
        suffix: () => t('project.node.times')
      }
    },
    {
      type: 'input-number',
      field: 'failRetryInterval',
      name: t('project.node.failed_retry_interval'),
      span: 12,
      props: {
        min: 0
      },
      slots: {
        suffix: () => t('project.node.minute')
      }
    }
  ]
}
